#ifndef     __PROTO_H
#define     __PROTO_H

#include <stdint.h>

namespace utils {

namespace proto {

const uint8_t Head0 = 0xE1;
const uint8_t Head1 = 0x1E;
const uint8_t End = 0xEF;
const uint16_t Head = 0xE11E;

const uint16_t SalveFlag = 0x8000;
const uint16_t NotifyFlag = 0x4000;

const uint16_t Ack = 0x00;
const uint16_t Log = 0x01 + NotifyFlag;

const uint16_t MotorCtrl = 0x02;
const uint16_t LedCtrl = 0x03;
const uint16_t MusicVolumeCtrl = 0x04;
const uint16_t MusicPlay = 0x05;
const uint16_t Delivery = 0x06;
const uint16_t Display = 0x07;
const uint16_t PriceCtrl = 0x08;


}

}

#endif
